package com.example.financeapi.utils.pay;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 微信配置
 * @author Alvin
 */
@Data
@ConfigurationProperties(prefix = WxPayProperties.WECHAT_PROPERTIES_PREFIX)
public class WxPayProperties {
    public static final String WECHAT_PROPERTIES_PREFIX = "easy.pay.wxpay";
    private String appSecret;
    private String apiKey;
    private String signType;
    private String certPath;
    private String notifyUrl;


    /** 公众号appid **/
    private String appId;
    /** 商户id **/
    private String mchId;
    /** 支付api安全密钥 **/
    private String mchKey;
    //private String tradeType = "NATIVE";
    /** 支付结果回调地址 **/
    private String payNotify;
    /** 退款回调地址 **/
    private String refundNotify;
    /** 退款证书名称 **/
    private String certName;

}
